import { getAction, postAction } from './manage'

// 查询儿童接送人
export function queryStudentPickup(params) {
  return getAction('/management/skStudent/queryStudentPickup', params)
}

// 查询儿童监护人
export function queryStudentGuardian(params) {
  return getAction('/management/skStudent/queryStudentGuardian', params)
}

// 班级管理设置教师
export function setTeache(params) {
  return getAction('/management/skClass/setTeacher', params)
}

// 班级管理回显教师
export function getTeache(params) {
  return getAction('/management/skClass/getTeacher', params)
}

// 根据id查询信息
export function queryById(url,params) {
  return getAction(url, params)
}

// 获取所有的班级
export function skClassList(params) {
  let defaultParams = {
    column: 'sortNo',
    order: 'asc',
  }
  if(!params) {
    params = defaultParams
  }else if(params && !params.column){
    params.column = defaultParams.column
  }else if(params && !params.order){
    params.order = defaultParams.order
  }
  return getAction('/management/skClass/list', params)
}

// 查询学期列表
export function querySkSemester(params) {
  return getAction("/management/skSemester/list", params)
}

// 查询学生列表
export function skStudentList(params) {
  return getAction("/management/skStudent/getStudentList", params)
}